/*  
 *  Copyright 2006 Paul Jack.
 *
 *  This file is part of the Dex compiler suite. 
 *  
 *  Dex is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; either version 2 of the License, or (at your
 *  option) any later version.
 *  
 *  Dex is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 *  Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */
package dex.compiler.model.expression;

import dex.compiler.model.type.TypeVisitor;


/**
 * Visitor for expressions.
 */
public interface ExpressionVisitor extends TypeVisitor {


	/**
	 * Visits an array expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitArrayExpression(ArrayExpression e);

	
	/**
	 * Visits a call expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitCallExpression(IndirectCall e);
	
	
	/**
	 * Visits an identifier expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitIdentifierExpression(IdentifierExpression e);
	
	
	/**
	 * Visits a boolean literal.
	 * 
	 * @param e  the expression to visit
	 */
	void visitLiteralBoolean(LiteralBoolean e);
	
	
	/**
	 * Visits an integer literal.
	 * 
	 * @param e  the expression to visit
	 */
	void visitLiteralInteger(LiteralInteger e);
	
	
	/**
	 * Visits a string literal.
	 * 
	 * @param e  the expression to visit
	 */
	void visitLiteralString(LiteralString e);
	
	
	/**
	 * Visits a member expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitMemberExpression(MemberExpression e);
	
	
	/**
	 * Visits an infix operator expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitInfixExpression(InfixExpression e);

	
	/**
	 * Visits a cast expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitCastExpression(CastExpression e);
	
	
	/**
	 * Visits a new expression.
	 * 
	 * @param e  the expression to visit
	 */
	void visitNewExpression(NewExpression e);
	

	/**
	 * Visits a unary operator expression.
	 * 
	 * @param e  the unary operator expression
	 */
	void visitUnaryExpression(UnaryExpression e);


	/**
	 * Visits a function literal.
	 * 
	 * @param e  the function literal to visit
	 */
	void visitLiteralFunction(LiteralFunction e);
	

	/**
	 * Visits a direct function call.
	 * 
	 * @param e  the direct function call to visit
	 */
	void visitDirectCall(DirectCall e);


	/**
	 * Visits a virtual function call.
	 * 
	 * @param e  the direct function call to visit
	 */
	void visitVirtualCall(VirtualCall e);

	
	/**
	 * Visits an is expression.
	 * 
	 * @param e  the is expression to visit
	 */
	void visitIsExpression(IsExpression e);

}
